<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="web_url" v-if="web_url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				web_url:'',
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				}
			}
		},
		methods: {
			loadHelpUrl()
			{
				var _this = this;
				var url = _this.$api.getSystemConfig('base.help_url');
				if(url)
				{
					_this.web_url = _this.$api.urldecode(url);
				}else{
					setTimeout(function(){
						console.log('reload again');
						_this.loadHelpUrl();
					},1000)
				}
			}
		},
		onLoad(){
			this.loadHelpUrl();
		},
	}
</script>

<style>

</style>
